 

Highcharts.chart('container', {
	chart: {
		plotBackgroundColor: null,
		plotBorderWidth: null,
		plotShadow: false,
		type: 'pie'
	},
	title: {
		text: '{$time}蜘蛛爬行总览图'
	},
	tooltip: {
		pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
	},
	plotOptions: {
		pie: {
			allowPointSelect: true,
			cursor: 'pointer',
			dataLabels: {
				enabled: true,
				format: '<b>{point.name}</b>: {point.y} 次',
				style: {
					color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
				}
			}
		}
	},
	series: [{
		name: '占比',
		colorByPoint: true,
		data: [
			{volist name="list" id="vo"}
			{
				name: '{$vo.name}蜘蛛',
				y: {$vo.num}
			},
			
			{/volist}
			
			]
	}]
});

  

layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //常规用法
  laydate.render({
    elem: '#kstime'
  });
  
  //国际版
  laydate.render({
    elem: '#jstime'
  });
  
});

layui.use('laypage', function(){
  var laypage = layui.laypage;
  laypage.render({
    elem: 'fy' //注意，这里的 test1 是 ID，不用加 # 号
    ,count: {if condition="$sjzs eq ''"}0{else}{$sjzs}{/if}//数据总数，从服务端得到
	,layout: ['count', 'prev', 'page', 'next', 'refresh', 'skip']
	,curr: {if condition="$fy eq ''"}0{else}{$fy}{/if}
	,jump: function(obj, first){

	    //首次不执行
	    if(!first){
	      //do something
		  window.location.href ='shujuchaxun.html?kstime={$kstime}&jstime={$jstime}&zzlx={$zzlx}&fy='+obj.curr;
	    }
	  }
  });
});

  

layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //常规用法
  laydate.render({
    elem: '#kstime'
  });
  
  //国际版
  laydate.render({
    elem: '#jstime'
  });
  
});


  

layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //常规用法
  laydate.render({
    elem: '#kstime'
  });
  
  //国际版
  laydate.render({
    elem: '#jstime'
  });
  
});

layui.use('laypage', function(){
  var laypage = layui.laypage;
  laypage.render({
    elem: 'fy' //注意，这里的 test1 是 ID，不用加 # 号
    ,count: {if condition="$sjzs eq ''"}0{else}{$sjzs}{/if}//数据总数，从服务端得到
	,layout: ['count', 'prev', 'page', 'next', 'refresh', 'skip']
	,curr: {if condition="$fy eq ''"}0{else /}{$fy}{/if}
	,jump: function(obj, first){

	    //首次不执行
	    if(!first){
	      //do something
		  window.location.href ='shujuchaxun.html?kstime={$kstime}&jstime={$jstime}&zzlx={$zzlx}&fy='+obj.curr;
	    }
	  }
  });
});

  

layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //常规用法
  laydate.render({
    elem: '#kstime'
  });
  
  //国际版
  laydate.render({
    elem: '#jstime'
  });
  
});

layui.use('laypage', function(){
  var laypage = layui.laypage;
  laypage.render({
    elem: 'fy' //注意，这里的 test1 是 ID，不用加 # 号
    ,count: {if condition="$sjzs eq ''"}0{else}{$sjzs}{/if}//数据总数，从服务端得到
	,layout: ['count', 'prev', 'page', 'next', 'refresh', 'skip']
	,curr: {if condition="$fy eq ''"}0{else /}{$fy}{/if}
	,jump: function(obj, first){

	    //首次不执行
	    if(!first){
	      //do something
		  window.location.href ='zonlan.html?fy='+obj.curr;
	    }
	  }
  });
});

 